package com.globallogic.oopbasics.competence.entity;

import com.globallogic.oopbasics.competence.container.TotalCompetence;

/**
 * @author olena.strelchuk
 */

/**
 * Speciality Profile (Set of Competencies for each Speciality)
 */
public class SpecialityProfile {

	private Speciality speciality;
	private TotalCompetence totalCompetence;

	/**
	 * Constructor for SpecialityProfile
	 * 
	 * @param speciality
	 *            Link to Speciality
	 * @param totalCompetence
	 *            Link to TotalCompetence
	 */
	public SpecialityProfile(Speciality speciality,
			TotalCompetence totalCompetence) {
		this.speciality = speciality;
		this.totalCompetence = totalCompetence;
	}

	public Speciality getSpeciality() {
		return this.speciality;
	}

	public TotalCompetence getTotalCompetence() {
		return this.totalCompetence;
	}

	/**
	 * toString Method for Speciality Profile
	 * 
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		String specialityName = "Profile for Speciality: "
				+ speciality.getName();
		String result = "";
		result += specialityName + "\n" + totalCompetence.toString();
		return result;
	}
}
